<template>
    <div>
        <select @change="selchange" style="height: 26px;">
            <option v-for="(item,index) in menu" :value="item">{{item}}</option>
        </select>
        <div>
            <table class="wq text-center" border="0" cellpadding="0" cellspacing="1">
                <tr class="t_list_caption">
                    <td>{{now}}</td>
                    <td>退水</td>
                    <td>单注限额</td>
                    <td>单期限额</td>
                </tr>
                <tr class="t_td_text" v-for="(value, key, index) in infoData" :key="index">
                    <td class="t_td_caption_1">{{key}}</td>
                    <td>{{value[pan]}}</td>
                    <td>{{value.item}}</td>
                    <td>{{value.bet}}</td>
                </tr>
            </table>
        </div>
    </div>
</template>
<script>

    import axios from 'axios'
    import {lotterytype} from '../../../../assets/js/lotterytype.js'

    export default {
        name: "Information",
        props: {  //普通类型：String、Number、Boolean、Null    引用类型： Array、Object
            // openBet: {  //可下注
            //     type: Boolean,
            //     required: true
            // },
            // ninetime: {  //90s
            //     type: Boolean,
            //     required: true
            // },
        },
        data(){
            return{
                infoData: {},
                menu: ['PC蛋蛋','六合彩','北京PK拾','北京快乐8','幸运飞艇','天津时时彩','新疆时时彩','重庆时时彩','安徽快3','江苏快3','山东11选5','广东11选5','江西11选5','广东快乐十分','重庆幸运农场',],
                pan: 'B',  //盘口
                now: 'PC蛋蛋',
            }
        },
        methods: {
            init(){
                var _this = this;

                this.$httpGet('/api/setting/play/' + _this.now + '/0').then(response => {
                        
                    if(response.status == 200){
                        _this.infoData = response.data.parentSettings;
                    }

                });
            },
            info(){
                var _this = this;

                this.$httpGet('/api/auth').then(response => {
                        
                    if(response.status == 200){
                        _this.pan = response.data.pan[0];
                    }

                });
            },
            selchange(event){
                console.log(event);
                this.now = event.target.value;
                this.init();
            },
            
        },
        mounted(){
            this.info();
            this.init();
        },
        watch: {
            

        },
    }
</script>
